package com.nwpu.coursesupport.pagination;

import org.apache.ibatis.session.RowBounds;

public class PageBounds extends RowBounds {

	/**
	 * Size of per page
	 */
	private int size;
	
	/**
	 * Current page number
	 */
	private int number;
	
	/**
	 * Count of records
	 */
	private int count;
	
	/**
	 * Total number of page
	 */
	private int total;
	
	/**
	 * Constructs a new page bounds
	 */
	public PageBounds() {
	}
	
	/**
	 * Constructs a new page bounds with size
	 * 
	 * @param size the size of per page
	 */
	public PageBounds(int size) {
		this.size = size;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}
}
